Skip to main content

colorNameToColor

Type

handler

Summary

Convert a color name string to a color type

Syntax

colorNameToColor(<pValue>,<pDefault>)

Description

Try to get any value as a color.

note

This handler is for internal use.

Parameters

NameTypeDescription

pValue

String indicating the color name. pDefault: Default value in case the conversion fails

Value

NameTypeDescription

return

A color as result of the conversion, pDefault if the conversion fails.